<template>
	<view>
		<view>
		    <view class="info-item">
		      <text>工单编号：</text>
		      <text>{{ userInfo.taskPlan.ticketNum }}</text>
		    </view>
		    <view class="info-item">
		      <text>班次：</text>
		      <text>{{ userInfo.taskPlan.sailings }}</text>
		    </view>
		    <view class="info-item">
		      <text>区队：</text>
		      <text>{{ userInfo.taskPlan.parentDeptName }}</text>
		    </view>
		    <view class="info-item">
		      <text>班组：</text>
		      <text>{{ userInfo.taskPlan.deptName }}</text>
		    </view>
		    <view class="info-item">
		      <text>班组长：</text>
		      <text>{{ userInfo.taskPlan.morName }}</text>
		    </view>
		    <view class="info-item">
		      <text>钻孔编号：</text>
		      <text>{{ userInfo.drillInf.borerId }}</text>
		    </view>
		    <view class="info-item">
		      <text>钻机编号：</text>
		      <text>{{ userInfo.borerInf.borerId }}</text>
		    </view>
		  </view>
		  <hr>
		  
		  <view class="container">
		     <uni-icons type="checkbox" size="24"></uni-icons>
		     <uni-title class="title" title="钻孔情况" type="h4"></uni-title>
		   </view>
		   
		   <view>
		      <view class="info-item">
		        <text>钻孔编号：</text>
		        <text>{{ userInfo.drillInf.borerId }}</text>
		      </view>
			  <view class="info-item">
			    <text>钻机地点：</text>
			    <text>{{ userInfo.drillInf.borerLoc }}</text>
			  </view>
		      <view class="info-item">
		        <text>钻孔类型：</text>
		        <text>{{ userInfo.drillInf.borerType }}</text>
		      </view>
		      <view class="info-item">
		        <text>孔径（mm）：</text>
		        <text>{{ userInfo.drillInf.poreSize }}</text>
		      </view>
		      <view class="info-item">
		        <text>倾角（°）：</text>
		        <text>{{ userInfo.drillInf.brakeTorque }}</text>
		      </view>
		      <view class="info-item">
		        <text>方位角（°）：</text>
		        <text>{{ userInfo.drillInf.mainAngle }}</text>
		      </view>
		      <view class="info-item">
		        <text>开孔高度（m）：</text>
		        <text>{{ userInfo.drillInf.poreHigh }}</text>
		      </view>
		    </view>
			<hr>
			
			<view class="container">
			   <uni-icons type="checkbox" size="24"></uni-icons>
			   <uni-title class="title" title="钻机情况" type="h4"></uni-title>
			</view>
			
			<view>
			   <view class="info-item">
			     <text>钻机编号：</text>
			     <text>{{ userInfo.borerInf.borerId }}</text>
			   </view>
			   <view class="info-item">
			     <text>钻机型号：</text>
			     <text>{{ userInfo.borerInf.borerNum }}</text>
			   </view>
			   <view class="info-item">
			     <text>钻机型式：</text>
			     <text>{{ userInfo.borerInf.borerType }}</text>
			   </view>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo:{
					id:'325',
				},
				ask:undefined
			}
		},
		created() {
			var token = "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjA1ZTRkOGZlLTU2ZDAtNGY1Mi04YjdjLTgyMGNkYzgwZjFhZSJ9.Ov1Tee8F0W3oaRXMzrhy8DNx2OPotyhscIW_7YNSSsIUW-PVxMXMRBQKQVQ5TWcgn406lzm3Y8JYxILhKoM_aQ";
			
			uni.request({
				url:"/kyhs/task-inf-list?ticketNum="+this.ask,
				method:"post",
				header:{'Authorization': token}
			}).then(Response =>{
				this.userInfo=Response.data.data;
			})
		},
		onLoad(e) {
			let id = e.id;
			this.ask=id;
		},
		methods: {
			
		}
	}
</script>

<style>
	.container {
	  display: flex;
	  align-items: center;
	}
</style>
